#ifndef BODYFILEFORMAT_H
#define BODYFILEFORMAT_H

#include "Data/Data.h"
#include "Entities/BodyEntity.h"

class BodyFileFormat
{
public:
	virtual ~BodyFileFormat() {}

	virtual BodyEntity* Load( const std::string& filename );
	virtual void Save( const BodyEntity* bodyEntity, const std::string& filename );

private:
	BodyEntity* LoadFromDto( const data::Body& dataBody );
	data::Body SaveToDto( const BodyEntity* bodyEntity ) const;

};

#endif
